﻿



exports.queryBoardsfromUser = function (username,request, response, cb) {

    var dbController = require('./dbController');
    var user = dbController.queryBoardsByUser(username,request,  response, cb);


}

exports.queryMessagesfromBoard = function (boardname, response, cb) {

    var dbController = require('./dbController');
    var user = dbController.queryMessagesfromBoard(boardname, response, cb);


}


exports.deleteMessagesfromBoard = function (boardname,id, response, cb) {

    var dbController = require('./dbController');
    var user = dbController.deleteMessagesfromBoard(boardname,id, response, cb);


}
exports.queryCategorys = function (response, queryCb) {

    var dbController = require('./dbController');
    var user = dbController.queryCategorys(response, queryCb);


}




exports.setBoard = function (title,category,boardname,username,response,cb) {

    var dbController = require('./dbController');
    var user = dbController.setBoard(title, category, boardname, username, response, cb);


}

exports.setMsg = function (boardName, subject, text, color, username, response, cb) {

    var dbController = require('./dbController');
    var user = dbController.setMsg(boardName, subject, text, color, username, response, cb);


}

exports.querySearch = function (username, searchStr, request, response, cb) {

    var dbController = require('./dbController');
    var user = dbController.querySearch(username, searchStr, request, response, cb);


}




exports.setJoinUser = function(username,boardName,  response, cb){

    var dbController = require('./dbController');
    var user = dbController.setUserJoinedBoard(username, boardName,response, cb);


}



exports.getBoardUserPermission = function (boardName,username,  response, cb) {

    var dbController = require('./dbController');
    var user = dbController.getBoardUserPermission(boardName, username, response, cb);


}